<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMemosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('c_memos', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('case_id')->default(0)->comment('病例id');
            $table->integer('user_id')->default(0)->comment('用户id');
            $table->date('ins_times')->default(null)->comment('时间');
            $table->text('content')->default(null)->comment('内容');
            $table->text('type')->default(null)->comment('类型1:文字,2:图片,3:语音');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('c_memos');
    }
}
